<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
	$(document).ready(function(){
		//검색
		$("#BtnSearch").click(function(){
		$.ajax({
			type:'GET',
			url:'/jeons/zipcode/search?dong='+$('#dong').val(),
			success:function(data){
				 $(".subview").html(data);  
			}
		});
		
	});		
		
		
		
	//닫기
	$("#BtnClose").click(function(){
		$.nmTop().close();
	});
		
});

</script>
<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
	<form:form commandName="zipcode" id="zipcode" method="post">
		<table border="0" width="500px" height="50">
			<tr>
				<td colspan="4" bgcolor="#ffffff" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center" colspan="2">동을 입력해주세요!</th>
				<td><form:input path="dong" /></td>
				<td><button type="button" id="BtnSearch">검색</button></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#ffffff" height="1"></td>
			</tr>
		</table>
	</form:form>
</fieldset>
<br>
<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
	<div class="subview"></div>
</fieldset>
<div align="right">
	<button type="button" id="BtnClose">닫기</button>
</div>